//两种调试信息输出：alert函数和console控制台（客户端浏览器）输出

//定义数据类型变量
var age=23;
alert(age);

//字符类型变量
var question ="中国人\'中国地";
alert(question);

//布尔类型
var is_admin = true;
console.log(is_admin);

//数组类型变量
var animals = Array();
animals[0]="陈腾飞";
animals[1]="猪";
animals[2]="狗";
console.log(animals);

//关联数组
var product = Array();
product["name"] = "笔记本电脑";
product["price"] = 4500.0;
console.log(product["price"]);

//对象
var student = new Object();
student.name = "张三";
student.age = 19;

console.log(student);

//选择
var number = 5;
if (number<6)
    console.log(number);


var person2 = {
    name:"王五",
    age:21,
    success:function(){console.log("成功")},
}
person2.success();